package lab02.test16;

public class Test16 {
    public static void main(String[] args) {
        //对各个类建立上转型对象
        Arithmetic addition = new Addition();
        System.out.println("加法运算:" + addition.artthmetic(30,20));

        Arithmetic subtraction = new Subtraction();
        System.out.println("减法运算:" + subtraction.artthmetic(10,15));

        Arithmetic multiplication = new Multiplication();
        System.out.println("乘法运算:" + multiplication.artthmetic(3, 7));

        Arithmetic division = new Division();
        System.out.println("除法运算:" + division.artthmetic(20,3));
    }
}
